package com.zzyl.common.utils;

public class UserThreadLocal {

    private static ThreadLocal<Long>  threadLocal = new ThreadLocal();


    public static void setUserId(Long userId){
        threadLocal.set(userId);
    }


    public static Long getUserId(){
        Long userId = threadLocal.get();
        return userId;
    }


    public static void remove(){
        threadLocal.remove();
    }
}
